home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / PROGMISC / FPCHELP.LZH / PRINTING.HLP < prev    next >
Text File  |  1988-01-11  |  8KB  |  227 lines

  1. \ PRINTING.HLP  Export & Import for SED.           by 1987 Tom Zimmer
  2.  
  3. dolst           ( --- a1 )
  4.         A variable that tells if listing to the screen is turned on or off.
  5.  
  6. p$type          ( a1 --- )
  7.         Send the counted string to the printer.
  8.  
  9. pcr             ( --- )
  10.         Send a CR LF to the printer.
  11.  
  12. ptype           ( a1 n1 --- )
  13.         Send the a1,n1 string to the printer.
  14.  
  15. .p##            ( N1 --- )
  16.         Print the number n1 as two digits to the printer.
  17.  
  18. <.pTIME>       ( d1 --- )
  19.         Print the current file to the printer.
  20.  
  21. <.pDATE>        ( d1 --- )
  22.         Print the current date to the printer.
  23.  
  24. pdate/time      ( --- )
  25.         Print the current date and time to the printer.
  26.  
  27. controlines     ( --- a1 )
  28.         A variable that accumulates the nubmer of control lines
  29.         entered in a file. This is a carryover from ZED.
  30.  
  31. skipto          ( a1 --- a2 )
  32.         given address a1, skip to thelast blank just before text
  33.         is encountered.
  34.  
  35. ?escprint       ( --- f1 )
  36.         Test the current print line. If it contains a leading ".#"
  37.         then it is an escape line, and should be processed as such.
  38.  
  39.         The escape lines are followed by decimal values to be sent
  40.         to the printer.
  41.  
  42. .noprinter      ( --- )
  43.         Display a message that no printer is available, or is off line.
  44.  
  45. printline       ( --- )
  46.         Print the current line to the printer, preceeded by left margin,
  47.         and followed by a CR LF.
  48.  
  49. pagenumber      ( --- a1 )
  50.         Starting page number, defaults to 1.
  51.  
  52. firstpage       ( --- a1 )
  53.         First page to print, defaults to 1.
  54.  
  55. lastpage        ( --- a1 )
  56.         Last page to print, defaults to the last page of the document.
  57.  
  58. .underline      ( --- )
  59.         Underline the current line and print it.
  60.  
  61. .pg#            ( --- )
  62.         Print the page number, date, time, and filename.
  63.  
  64. newpage         ( --- )
  65.         Print a formfeed for a new page.
  66.  
  67. setpage         ( --- )
  68.         Set the first page to print to the current page.
  69.  
  70. linesleft       ( --- n1 )
  71.         Returns n1 the lines left to print on this page.
  72.  
  73. .header         ( --- )
  74.         Print the header, which is the first line of the file.
  75.         The header is printed underlined.
  76.  
  77. ?newpage        ( --- )
  78.         Print the footer and a page break if a new page is needed.
  79.  
  80. copies          ( --- a1 )
  81.         A variable that holds the number of copies to print.
  82.         Defaults to one copy.
  83.  
  84. pgtoprint       ( --- a1 )
  85.         This variable gets set to the first page to print.
  86.  
  87. todocpage       ( --- )
  88.         Move to the first page to print in the edit buffer.
  89.  
  90. lsttoprint      ( --- a1 )
  91.         This variable gets set to the last page to print.
  92.  
  93. ?lastppg        ( --- f1 )
  94.         Return boolean f1, true if we are on the last page to print.
  95.  
  96. setlastpg       ( --- )
  97.         Adjust the last page to print to the real last page of the
  98.         document.
  99.  
  100. doprint         ( --- )
  101.         Do the actual printing of a document that is already in memory.
  102.  
  103. insertsector    ( --- f1 )
  104.         Insert the 128 byte sector just read from disk, return f1 true
  105.         if this is the last sector to insert.
  106.  
  107. imp/exp.init    ( --- )
  108.         Initialize the import export handle to contain the default
  109.         filename of TEMP.SEQ.
  110.  
  111. getinpfile      ( --- f1 )
  112.         Get a filename from the user to use for importing text. Defaults
  113.         to TEMP.SEQ, but can be specified by holding down SHIFT when
  114.         insert is selected.
  115.  
  116.  
  117. ?getexpfile     ( --- f1 )
  118.         Get a filename from the user to use for exporting text. Defaults
  119.         to TEMP.SEQ, but can be specified by holding down SHIFT when
  120.         Cut or Copy is selected.
  121.  
  122. export          ( --- )
  123.         Copy the currently marked text to the default file TEMP.SEQ.
  124.  
  125. excut           ( --- )
  126.         Cut the currently marked text to the default file TEMP.SEQ.
  127.  
  128. import          ( --- )
  129.         Paste in the text from the default file TEMP.SEQ.
  130.  
  131.         The above words EXPORT, EXCUT, and IMPORT allow you to
  132.         specify a filename to be used, by holding down SHIFT while
  133.         the function is selected.
  134.  
  135. escattrib       ( --- )
  136.         A defered word that specifies what the display attribute will
  137.         be for the escape messages at the bottom of the print menu.
  138.         Normal is reverse, but is an error is detected in command
  139.         entry, then blink will be used to alert the user of the keys
  140.         to use.
  141.  
  142. torev           ( --- )
  143.         Select reverse video for the escape display attributes.
  144.  
  145. toblnk          ( --- )
  146.         Select blinking video for th eescape display attributes.
  147.  
  148. pitems          ( --- n1 )
  149.         A constants that returns the nubmer of items in the print menu.
  150.  
  151. prtmenu         ( --- a1 )
  152.         A table which returns a1, the address of the print menu table,
  153.         with its functions.
  154.  
  155. showpdata       ( --- )
  156.         A routine to display the print menu.
  157.  
  158. showcmds        ( --- )
  159.         A routine to display the escape command menu.
  160.  
  161. showpform       ( --- )
  162.         Display the entire print menu.
  163.  
  164. sc              ( --- )
  165.         Display the escape command menu in reverse video, the normal
  166.         mode.
  167.  
  168. pitem           ( --- a1 )
  169.         A variable that holds the current print menu item number.
  170.  
  171. pnumval         ( --- a1 )
  172.         A variable that holds the value to be applied to an entry
  173.         while a number is being entered, like 10 if we want to print
  174.         10 copies, or 3 if we want to print starting on page 3.
  175.  
  176. >pitem          ( --- a1 )
  177.         Return the address of the item number in PITEM.
  178.  
  179. showpcur        ( --- )
  180.         Show the cursor on the current item number.
  181.  
  182. ptohome         ( --- )
  183.         Move the cursor to the home position, that is top left.
  184.  
  185. penter          ( c1 --- c1 )
  186.         Perform a function when <enter> is pressed, that is typically
  187.         to go down or to wrap from the bottom of one column to the
  188.         top of the next column.
  189.  
  190.  
  191. pincr           ( c1 --- c1 )
  192.         Increment the current item number, that is go down one item.
  193.         Mya wrap to the top of the next column.
  194.  
  195. pdecr           ( c1 --- c1 )
  196.         Decrement the current item nubmer, that is go up in the
  197.         current column. May wrap to the bottom of the previous column.
  198.  
  199. prright         ( c1 --- c1 )
  200.         Move right from the current column to the next column ot the
  201.         right. May wrap to the first column on the left if pressed
  202.         at the right edge.
  203.  
  204. prup            ( c1 --- c1 )
  205.         Move up one item. May wrap to the bottom of the previous column.
  206.  
  207. pbkspace        ( c1 --- c1 )
  208.         Backspace, clears the number in the current column entry.
  209.         If an invalid entry is made, Backspace will clear it to zero
  210.         so it can be entered again.
  211.                 then    ;
  212.  
  213. pnum            ( c1 --- c1 )
  214.         Accept the number c1 just entered, and accumulate it in the
  215.         current column. The current value is scaled by multiplying
  216.         by 10, then the current key value is added int.
  217.  
  218. pmenu           ( --- )
  219.         The printing top level word, displays a menu of options.
  220.         Pressing P will cause printing to start, pressing ESC or Alt-P
  221.         will abort printing.
  222.  
  223. elisting        ( --- )
  224.         Print a hard copy listing of the current file that is open.
  225.         This word is the functon called by LISTING.
  226.  
  227.